﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="CustomerLicence.ascx.cs" Inherits="CustomerLicence" %>
<%@ Register Src="CuTextSelectBox.ascx" TagName="CuTextSelectBox" TagPrefix="uc1" %>
<%@ Register Src="CuTextBox.ascx" TagName="CuTextBox" TagPrefix="uc2" %>
<script language="javascript" src="../App_script/index.js"></script>
<script language="javascript" src="../XMLHttpRequest/xmlhttprequest.js"></script>
<script language="javascript" src="../App_Script/InputValidate.js"></script>
<link type="text/css" rel="stylesheet" href="../App_Css/css1.css"/>
<table width="100%" bgcolor="#E9F0EB" cellpadding="0" cellspacing="0" border="0">
    <tr>
        <td align="center">
            <table height="25" width="100%" cellspacing="0" cellpadding="0" class="text" border="1" bordercolor="#719078" style="border-collapse: collapse">
                <tr height="25" style="cursor:default">
                    <td align="center" width="60" style="font-weight: bold; color: #3A8A39">操作</td>
                    <td align="center" style="font-weight: bold; color: red; width: 100px;">许可证号</td>
                    <td align="center" style="font-weight: bold; color: red; width: 120px;">许可证名称</td>
                    <td align="center" style="font-weight: bold; color: #3A8A39; width: 150px;">单位名称</td>
                    <td align="center" style="font-weight: bold; color: #3A8A39; width: 80px;">负责人</td>
                    <td align="center" style="font-weight: bold; color: #3A8A39; width: 180px;">许可范围</td>
                    <td align="center" style="font-weight: bold; color: red; width: 90px;">有效日期</td>
                    <td align="center" style="font-weight: bold; color: #3A8A39; width: 200px;">单位地址</td>
                    <td align="center" style="font-weight: bold; color: #3A8A39; width: 120px;">发证机关</td>
                    <td align="left" style="font-weight: bold; color: #3A8A39">&nbsp;&nbsp;&nbsp;发证日期</td>
                </tr>
                <asp:Panel ID="panAddResult" runat="server" Visible="false">
                    <tr height="25">
                        <td align="center" width="60">
                            <asp:ImageButton ID="ibtnAddCancel"  CommandName="3" ImageUrl="../App_Images/ico/4.gif" ToolTip="取消新增" runat="server" OnClientClick="return confirm('您真的要取消新增吗？');" OnClick="ibtnAddCancel_Click" />&nbsp;
                            <asp:ImageButton ID="ibtnAddServer"  CommandName="4" ImageUrl="../App_Images/ico/11.gif" ToolTip="保存新增" runat="server" OnClick="ibtnAddServer_Click" />
                        </td>
                        <td align="center" style="width: 100px"><uc2:CuTextBox ID="txtNo" Width="90" runat="server" /></td>
                        <td align="center" style="width: 120px"><uc2:CuTextBox ID="txtName" Width="110" runat="server" /></td>
                        <td align="center" style="width: 150px"><uc2:CuTextBox ID="txtCorpname" Width="140" runat="server" /></td>
                        <td align="center" style="width: 80px"><uc2:CuTextBox ID="txtPrincipal" Width="70" runat="server" /></td>
                        <td align="center" style="width: 180px"><uc2:CuTextBox ID="txtFiatbound" Width="170" runat="server" /></td>
                        <td align="center" style="width: 90px"><uc1:CuTextSelectBox ID="txtVirtualdate" Width="80" TextValueValidateID="0" ReturnTextIDs="txtVirtualdate" OpenPageUrl="../Mod_QueryFrom/frm_Calendar.aspx" OpenPageHeight="232" OpenPageWidth="227" runat="server" /></td>
                        <td align="center" style="width: 200px"><uc2:CuTextBox ID="txtCorpaddr" Width="190" runat="server" /></td>
                        <td align="center" style="width: 120px"><uc2:CuTextBox ID="txtOrgan" Width="110" runat="server" /></td>
                        <td align="left"><uc1:CuTextSelectBox ID="txtDate" Width="100" TextValueValidateID="0" ReturnTextIDs="txtDate" OpenPageUrl="../Mod_QueryFrom/frm_Calendar.aspx" OpenPageHeight="232" OpenPageWidth="227" runat="server" /></td>
                    </tr>
                </asp:Panel>
            </table>
        </td>
    </tr>
    <tr>
        <td valign="top">
            <asp:DataGrid ID="dgrdResult" Height="20" Width="100%" runat="server" AllowPaging="True" AutoGenerateColumns="False" PageSize="10" ShowHeader="False" BorderStyle="None" BorderWidth="0px" CellPadding="0" CssClass="text" OnItemDataBound="dgrdResult_ItemDataBound">
                <PagerStyle Visible="False" BorderStyle="None" BorderWidth="0px" />
                <Columns>
                    <asp:TemplateColumn  ItemStyle-VerticalAlign="top">
                        <ItemTemplate>
                            <table width="100%" height="20" class="text" cellpadding="0" cellspacing="0" border="1" bordercolor="#719078" style="border-collapse: collapse">
                                <tr id="trRs" runat="server">
                                    <td width="60" align="center">
                                        <table width="60" border="0" cellpadding="0" cellspacing="0" height="20">
                                            <tr>
                                                <td>
                                                    <asp:CheckBox ID="chkRsSelect" onclick="ChangTrBgColorByDataGrid(this, 'trRs', 'chkRsSelect')" style="cursor:hand" Visible="true" runat="server" />
                                                    <asp:ImageButton ID="ibtnRsCancel" OnClick="UpdateInfo" CommandName="1" CommandArgument="<%# Container.ItemIndex %>" ToolTip="取消编辑" Height="17" Width="17" Visible="false" ImageUrl="../App_Images/ico/4.gif" runat="server" OnClientClick="return confirm('您真的要取消编辑吗？')" />
                                                </td>
                                                <td>
                                                    <asp:imagebutton ID="ibtnRsEdit" OnClick="UpdateInfo" CommandName="0" CommandArgument="<%# Container.ItemIndex %>" ToolTip="编辑" Height="17" Width="17" Visible="true" ImageUrl="../App_Images/ico/12.gif" runat="server" />
                                                    <asp:ImageButton ID="ibtnRsServer" OnClick="UpdateInfo" CommandName="2" CommandArgument="<%# Container.ItemIndex %>" ToolTip="保存编辑" Height="17" Width="17" Visible="false" ImageUrl="../App_Images/ico/11.gif" runat="server" />
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                    <td align="center" style="width: 100px"><uc2:CuTextBox ID="txtRsNo" Text='<%# DataBinder.Eval(Container.DataItem, "no")%>' ToolTip='<%# DataBinder.Eval(Container.DataItem, "no")%>' Width="90" ReadOnly="true" runat="server" /></td>
                                    <td align="center" style="width: 120px"><uc2:CuTextBox ID="txtRsName" Text='<%# DataBinder.Eval(Container.DataItem, "name")%>' ToolTip='<%# DataBinder.Eval(Container.DataItem, "name")%>' Width="110" ReadOnly="true" runat="server" /></td>
                                    <td align="center" style="width: 150px"><uc2:CuTextBox ID="txtRsCorpname" Text='<%# DataBinder.Eval(Container.DataItem, "corpname")%>' ToolTip='<%# DataBinder.Eval(Container.DataItem, "corpname")%>' Width="140" ReadOnly="true" runat="server" /></td>
                                    <td align="center" style="width: 80px"><uc2:CuTextBox ID="txtRsPrincipal" Text='<%# DataBinder.Eval(Container.DataItem, "principal")%>' ToolTip='<%# DataBinder.Eval(Container.DataItem, "principal")%>' Width="70" ReadOnly="true" runat="server" /></td>
                                    <td align="center" style="width: 180px"><uc2:CuTextBox ID="txtRsFiatbound" Text='<%# DataBinder.Eval(Container.DataItem, "fiatbound")%>' ToolTip='<%# DataBinder.Eval(Container.DataItem, "fiatbound")%>' Width="170" ReadOnly="true" runat="server" /></td>
                                    <td align="center" style="width: 90px"><uc1:CuTextSelectBox ID="txtRsVirtualdate" Text='<%# DataBinder.Eval(Container.DataItem, "virtualdate")%>' ToolTip='<%# DataBinder.Eval(Container.DataItem, "virtualdate")%>' Width="80" ReadOnly="true" TextValueValidateID="0" ReturnTextIDs="txtRsVirtualdate" OpenPageUrl="../Mod_QueryFrom/frm_Calendar.aspx" OpenPageHeight="232" OpenPageWidth="227" runat="server" /></td>
                                    <td align="center" style="width: 200px"><uc2:CuTextBox ID="txtRsCorpaddr" Text='<%# DataBinder.Eval(Container.DataItem, "corpaddr")%>' ToolTip='<%# DataBinder.Eval(Container.DataItem, "corpaddr")%>' Width="190" ReadOnly="true" runat="server" /></td>
                                    <td align="center" style="width: 120px"><uc2:CuTextBox ID="txtRsOrgan" Text='<%# DataBinder.Eval(Container.DataItem, "organ")%>' ToolTip='<%# DataBinder.Eval(Container.DataItem, "organ")%>' Width="110" ReadOnly="true" runat="server" /></td>
                                    <td align="left"><uc1:CuTextSelectBox ID="txtRsDate" Width="80" Text='<%# DataBinder.Eval(Container.DataItem, "date")%>' ToolTip='<%# DataBinder.Eval(Container.DataItem, "date")%>' ReadOnly="true" TextValueValidateID="0" ReturnTextIDs="txtRsDate" OpenPageUrl="../Mod_QueryFrom/frm_Calendar.aspx" OpenPageHeight="232" OpenPageWidth="227" runat="server" /></td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:TemplateColumn>
                    <asp:BoundColumn DataField="id" ReadOnly="True" Visible="False"></asp:BoundColumn>
               </Columns>
            </asp:DataGrid>
        </td>
    </tr>
    <tr>
        <td align="left" height="40">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Label ID="lblRsCounts" Enabled="false" runat="server" CssClass="text"/>
            <asp:Label ID="lblPageCounts" Enabled="false" runat="server" CssClass="text"/>
            <asp:Label ID="lblCurrPage" Enabled="false" runat="server" CssClass="text"/>&nbsp;&nbsp;
            <asp:linkbutton ID="lbtnFirst" Enabled="false" runat="server" CssClass="text" Text="首  页" OnClick="ChangPage" CommandName="0" />
            <asp:linkbutton ID="lbtnPrev" Enabled="false" runat="server" CssClass="text" Text="上一页" OnClick="ChangPage" CommandName="1" />
            <asp:linkbutton ID="lbtnNext" Enabled="false" runat="server" CssClass="text" Text="下一页" OnClick="ChangPage" CommandName="2" />
            <asp:linkbutton ID="lbtnEnd" Enabled="false" runat="server" CssClass="text" Text="尾  页" OnClick="ChangPage" CommandName="3" />
        </td>
    </tr>
</table>
<asp:label ID="lblJs" runat="server"/>